//
//  SISSNetworkingManager+PassengerProgress.h
//  SISSAPP
//
//  Created by 优房网 on 2017/8/24.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import "SISSNetworkingManager.h"

@class SISSHouseResourceModel;
@class SISSPassengerProgressRecordInfoModel;
@class SISSBuyerEntrustContractModel;
@class SISSBuyerEntrustContractDraftModel;
@class SISSBrokerInfoModel;
@class SISSBuyerInfoModel;
@class SISSPassengerCooperationDetailModel;
@class SISSPassengerTakeLookModel;
@class SISSPassengerTakeLookDetailModel;
@class SISSCommentModel;
@class SISSBuyHouseQualificationModel;

#import "SISSMortgageAppointmentInfoModel.h"
#import "SISSPropertyMortgageInfoModel.h"


@interface SISSNetworkingManager (PassengerProgress)

/**
 4.2.2 删除客源进度 GET请求
 
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)deletePassengerProgressWithHouseAdbpId:(NSString *)adbpId successBlock:(void (^)(id responseObject))successBlock failed:(void (^)(NSError *error))failedBlock;

/**
 4.4.2 获取客源进度时间和id信息 GET请求
 
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPassengerProgressRecordInfoWithAdbpId:(NSString *)adbpId
                                                        success:(void(^)(SISSPassengerProgressRecordInfoModel *progressInfoModel))successBlock
                                                         failed:(void(^)(NSError *error))failedBlock;

/**
 4.23.2  获取客源推荐的房源信息 GET请求

 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPassengerRecommendHouseWithAdbpId:(NSString *)adbpId success:(void(^)(NSArray<SISSHouseResourceModel *> *houseResourceArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.25.2.1 获取客源带看记录 GET请求
 
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPassengerTakelookRecordWithAdbpId:(NSString *)adbpId success:(void(^)(NSArray<SISSPassengerTakeLookModel *> *takeLookArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.25.2.2 获取客源带看记录详情 GET请求
 
 @param ID 带看记录id
 @param type type
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPassengerTakelookDetailWithId:(NSString *)ID type:(NSInteger)type success:(void(^)(SISSPassengerTakeLookDetailModel *takeLookDetail))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.25.2.3.1  获取带看经纪人评价买家 GET请求
 
 @param atlrId 带看id
 @param takelookType 线上线下类型
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestCommentTakeLookBrokerCommentBuyerInfoWithAtlrId:(NSString *)atlrId takelookType:(NSInteger)takelookType success:(void(^)(NSArray<SISSCommentModel *> *commentArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.25.2.3.2  获取带看买家评价经纪 GET请求
 
 @param atlrId 带看id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestCommentTakeLookBuyerCommentBrokerInfoWithAtlrId:(NSString *)atlrId success:(void(^)(NSArray<SISSCommentModel *> *commentArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.25.2.4  经纪人评价买家
 
 @param parameters 参数
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertBrokerCommentBuyerWithParameters:(NSDictionary *)parameters success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 4.25.2.5  删除客源进度带看记录 GET请求
 
 @param ID 带看记录id
 @param type type
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)deletePassengerTakelookWithId:(NSString *)ID type:(NSInteger)type success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.26.2 获取客源进度委托合同 GET请求
 
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPassengerProgressEntrustContractWithAdbpId:(NSString *)adbpId success:(void(^)(SISSEntrustContractModel *entrustContractModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.26.2.1 上传购房资格 (图文上传)
 
 @param parameters 上传参数
 @param images 上传图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertBuyHouseQualificationWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 4.26.2.3 获取购房资格 GET请求
 
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestBuyHouseQualificationInfoWithAdbpId:(NSString *)adbpId success:(void(^)(SISSBuyHouseQualificationModel *buyHouseQualificationModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.26.2.4 更新购房资格证明 (图文上传) PUT请求
 
 @param parameters 上传参数
 @param images 上传图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateBuyHouseQualificationWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.32.2.1 获取经纪人评价买家的记录 GET请求
 
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestCommentBrokerCommentBuyerInfoWithAdbpId:(NSString *)adbpId success:(void(^)(NSArray<SISSCommentModel *> *commentArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.32.2.2 获取买家评价经纪人的记录 GET请求
 
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestCommentBuyerCommentBrokerInfoWithAdbpId:(NSString *)adbpId success:(void(^)(NSArray<SISSCommentModel *> *commentArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.37.1 更新客源进度委托合同状态 GET请求 state：2不同意
 
 @param ID 合同id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)disagreeBuyerCommissionContractWithId:(NSString *)ID success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;



/**
 4.38.2 获取告知书买家信息(线下)
 
 @param ID 告知书id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestImportNotiOfflineBuyerInfoWithID:(NSString *)ID success:(void(^)(SISSBuyerInfoModel *buyerInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.25.2 添加客源带看记录  (图文上传)
 
 @param parameters 上传参数
 @param images 上传图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertPassengerProgressTakeLookWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.29.2 添加客源进度委托合同 (图文上传)
 
 @param parameters 上传参数
 @param images 上传图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertPassengerEntrustContractWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.37.2 同意买家委托合同 (图文上传)
 
 @param ID 合同id
 @param images 上传图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertAgreeBuyerCommissionContractWithId:(NSString *)ID images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.2.33.1 插入按揭预约登记信息 (图文上传)
 
 @param parameters 参数
 @param images 图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertMortgageAppointmentInfoWithParamters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;
/**
 4.2.33.2 获取按揭预约登记信息 GET请求
 
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMortgageAppointmentInfoWithAdbpId:(NSString *)adbpId success:(void(^)(SISSMortgageAppointmentInfoModel *mortgageAppointmentInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;
/**
 4.2.33.3 修改按揭预约登记信息 (图文上传)
 
 @param parameters 参数
 @param images 图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateMortgageAppointmentInfoWithParamters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.2.34.1 插入产权登记中心办理抵押 PUT请求
 
 @param parameters 参数
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertPropertyMortgageInfoWithParamters:(NSDictionary *)parameters success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;
/**
 4.2.34.2 获取产权登记中心办理抵押 GET请求
 
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPropertyMortgageInfoWithAdbpId:(NSString *)adbpId success:(void(^)(SISSPropertyMortgageInfoModel *propertyMortgageInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.2.34.3 修改产权登记中心办理抵押 PUT请求
 
 @param parameters 参数
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updatePropertyMortgageInfoWithParamters:(NSDictionary *)parameters success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.2.35.1 获取客源进度客户信息 GET请求
 
 @param adbpId 客源进度id
 @param demandType demandType
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestrProgressBuyerInfoWithAdbpId:(NSString *)adbpId demandType:(NSInteger)demandType success:(void(^)(SISSBuyerInfoModel *buyerInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.30.1 设置交易房源 GET请求
 
 @param parameters 参数
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)confirmTradeHouseWithParameters:(NSDictionary *)parameters success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.30.2 获取交易房源 GET请求
 
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestTradeHouseInfoWithAdbpId:(NSString *)adbpId success:(void(^)(SISSHouseResourceModel *houseInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;

@end
